POV-Ray : Newsgroups : povray.binaries.images : This may be my first *complete* scene (75K) : Re: This may be my first *complete* scene (75K) Server Time
16 Aug 2024 10:26:11 EDT (-0400)
  Re: This may be my first *complete* scene (75K)  
From: Zero
Date: 23 Feb 2002 10:56:57
Message: <3c77bbc9@news.povray.org>
> Also it might be quicker to use CSG objects instead of triangles. I'm not
sure
> how pov implements triangle meshes (I never use them). You could just do
the
> intersection of 4 planes. In fact I just worked out the maths so I can't
resist
> putting it here :)
>
> #declare Tetrahedron =
>     intersection {
>         plane { <1,1,1>, 1 }
>         plane { <-1,1,-1>, 1 }
>         plane { <1,-1,-1>, 1 }
>         plane { <-1,-1,1>, 1 }
>     }
>
> That should do it.
> Though it's gone midnight and I might have made a glaring error :)

Isn't that how the tetrahedron is defined in shapes.inc?  I didn't check it,
but I believe all geometrical solids are defined using intersections of
planes, so all you need is #include "shapes.inc" - all this math for nothing
;-)

Zero


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.